<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <base href="<?php echo $this->serverUrl() . $this->baseUrl(); ?>/" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <link rel="shortcut icon" href="img/iesgo.ico" />
    <link rel="stylesheet" href="<?php echo $this->baseUrl() ?>/css/style.css" type="text/css" />
    <link type="text/css" href="css/custom-theme/jquery-ui-1.8.11.custom.css" rel="stylesheet" />
    <!-- Jquery -->
    <script type="text/javascript" src="js/jquery-1.5.1.min.js"></script>
    <!-- Validate -->
    <script type="text/javascript" src="js/jquery.validate.js"></script>
    <!-- User Interface -->
    <script type="text/javascript" src="js/jquery-ui-1.8.11.custom.min.js"></script>
    <!-- Máscara -->
    <script type="text/javascript" src="js/jquery.meio.mask.min.js"></script>
    <!-- Jquery Data -->
    <script type="text/javascript" src="js/jquery.ui.datepicker-pt-BR.js"></script>
</head>
<body>

<div id="wrapper">
    <div class="title">
        <b>APNPJ</b> - Acompanhamento de Processos do Núcleo de Práticas Jurídicas
    </div>

    <div id="page">
        <div id="header-wrapper">
            <div id="logo">
                <img src="img/iesgo_logo.png" alt="Logo IESGO">
            </div>
            <?php if (Zend_Auth::getInstance()->hasIdentity()) : ?>
            <?php $identity = Zend_Auth::getInstance()->getIdentity(); ?>
            <div class="identidade">
                <a class="sair href="<?php echo $this->baseUrl() ?>/seguranca/sair">Sair</a><br />
                <b><?php echo $identity->ds_nome ?></b><br />
                <?php echo $identity->ds_email ?><br />
                Último Acesso: <?php echo date('d/m/Y H:i:s', strtotime($identity->dt_ultimo_acesso)) ?><br />
            </div>
            <?php endif; ?>
        </div>

        <!-- menu -->
        <div class="main_menu">
        <?php if (Zend_Auth::getInstance()->hasIdentity()) : ?>
            <ul>
                <li class="first">
                    <a href="<?php echo $this->baseUrl() ?>/atendimento/listar">
                        Atendimento
                    </a>
                 </li>
                <li><a>IESGO</a></li>
                <li class="last"><a>Faculdade</a></li>
            </ul>
        <?php endif; ?>
        </div>

        <!-- Conteúdo -->
        <div id="content">
            <?php
            $messages = (array) $this->layout()->messages;
            if (count($messages)) : ?>
            <div id="divErrors">
                <?php foreach( $messages as $mensage) {
                if (!empty($mensage)) {
                    echo $mensage . '<br />';
                    }
                }
            else : ?>
                <div id="divErrors" style="display:none;">
            <?php endif; ?>
                </div>
            <?php echo $this->layout()->content; ?>
            </div>
        </div>
    </div>

    <!-- Rodapé -->
    <div id="footer-wrapper">
        <div id="footer">
            <p>2011, IESGO/NPDT.</p>
        </div>
    </div>
</div>
<script type="text/javascript">
    $(document).ready(function() {
        $('input:text').setMask();
    });
</script>
</body>
</html>